/*
* 删除数据
* */
var mongoose = require('mongoose');
require('./model');

var Book = mongoose.model('Book');

Book.findOne({author:'cc'},function(err,data) { //查找author为cc的数据
	if(err) {
		console.log('err:',err);
		return;
	}
	if(data) {
		data.remove();    //删除该数据
	}
})